const TokenKey = 'token'
const roleList = 'roles'

export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token: string) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.setItem(TokenKey, '')
}

export function getRoles() {
  return localStorage.getItem(roleList)
}

export function setRoles(roles: any) {
  return localStorage.setItem(roleList, roles)
}

export function removeRoles() {
  return localStorage.setItem(roleList, '')
}
